Get Active Window
AutomatR.Windows.Activities.GetActiveWindow
The "Get Active Window" activity in AutomatR for Windows UI Automation allows you to retrieve information about the active window on your local system. This activity is helpful when you need to interact with the currently focused application or obtain details about the active window.
Properties
Name | Description |
---|---|
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before starting the activity. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
How to use:
- Drag and drop the "Get Active Window" activity onto the workflow.
- Optionally, configure the delay setting.
- Execute the workflow to retrieve information about the active window.
Example: Consider an example where the "Get Active Window" activity is used to obtain details about the currently active window:
Get Active Window:
Display Name: "Get Active Window Details"
Delay: 2
In this example, the activity waits for 2 seconds and then retrieves information about the currently active window. The obtained details can be further utilized in the workflow.